<template>
	<view class="content">
		<view class="warehouse">
			<view class="item">
				<view class="title">
					<text>仓库名称：</text>
					<u-image src="/static/img/home/edit.png" width="12" height="12"></u-image>
				</view>
				<view class="units">
					<text class="txt">所属部门：</text>
					<view class="dlists">
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
					</view>
				</view>
				<view class="depart">
					<text class="txt">所属库位：</text>
					<view class="dlists">
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
						<u-tag text="仓库" plain></u-tag>
					</view>
				</view>
			</view>
		</view>
		<view class="addWarehouse">
			<u-button text="新增仓库" type="primary" :customStyle="{height:'88rpx'}" @click="handleGo('/pages/spare/addWarehouse')"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			handleGo(str){
				uni.navigateTo({
					url:`${str}`
				})
			},
		}
	}
</script>

<style lang="less">
	page {
		background-color: rgb(248, 248, 248);
		font-size: 24rpx;
		padding: 0 32rpx 0 32rpx;
	}
	.content {
		display: flex;
		flex-direction: column;
	}
	.warehouse{
		display: flex;
		flex-direction: column;
	}
	.item{
		display: flex;
		flex-direction: column;
		background-color: #fff;
		border-radius: 10rpx;
		padding: 32rpx;
		margin-top: 32rpx;
	}
	.title{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		border-bottom: 2rpx solid rgb(204, 204, 204);
		padding-bottom: 24rpx;
	}
	.units{
		margin: 24rpx 0;
		display: flex;
		flex-direction: row;
	}
	.txt{
		width: 168rpx;
	}
	.depart{
		margin: 24rpx 0;
		display: flex;
		flex-direction: row;
	}
	.txt{
		width: 168rpx;
	}
	.dlists{
		margin-left: 24rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.addWarehouse{
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 88rpx;
	}
</style>
